AbandonedShip_HiddenFloorCorridors_MapScripts:: @ 815EB46
	map_script 5, AbandonedShip_HiddenFloorCorridors_MapScript1_15EB51
	map_script 1, AbandonedShip_HiddenFloorCorridors_MapScript1_15EB5A
	.byte 0

AbandonedShip_HiddenFloorCorridors_MapScript1_15EB51:: @ 815EB51
	setdivewarp MAP_ABANDONED_SHIP_UNDERWATER1, 255, 5, 4
	end

AbandonedShip_HiddenFloorCorridors_MapScript1_15EB5A:: @ 815EB5A
	call_if_unset FLAG_USED_ROOM_1_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB
	call_if_unset FLAG_USED_ROOM_2_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5
	call_if_unset FLAG_USED_ROOM_4_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF
	call_if_unset FLAG_USED_ROOM_6_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9
	call_if_set FLAG_USED_ROOM_1_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
	call_if_set FLAG_USED_ROOM_2_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
	call_if_set FLAG_USED_ROOM_4_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
	call_if_set FLAG_USED_ROOM_6_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3:: @ 815EBA3
	setmetatile 3, 8, METATILE_InsideShip_InTactDoor1_Bottom, 1
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD:: @ 815EBAD
	setmetatile 6, 8, METATILE_InsideShip_InTactDoor1_Bottom, 1
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7:: @ 815EBB7
	setmetatile 3, 3, METATILE_InsideShip_DoorIndent1, 0
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1:: @ 815EBC1
	setmetatile 9, 3, METATILE_InsideShip_DoorIndent1, 0
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB:: @ 815EBCB
	setmetatile 3, 8, METATILE_InsideShip_InTactDoor0_Bottom, 1
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5:: @ 815EBD5
	setmetatile 6, 8, METATILE_InsideShip_InTactDoor0_Bottom, 1
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF:: @ 815EBDF
	setmetatile 3, 3, METATILE_InsideShip_DoorIndent0, 0
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9:: @ 815EBE9
	setmetatile 9, 3, METATILE_InsideShip_DoorIndent0, 0
	return

AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
	lockall
	goto_if_set FLAG_USED_ROOM_1_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
	checkitem ITEM_ROOM_1_KEY, 1
	compare VAR_RESULT, 0
	goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECCF
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
	playse SE_PIN
	takeitem ITEM_ROOM_1_KEY, 1
	setflag FLAG_USED_ROOM_1_KEY
	call AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
	special DrawWholeMapView
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
	lockall
	goto_if_set FLAG_USED_ROOM_2_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
	checkitem ITEM_ROOM_2_KEY, 1
	compare VAR_RESULT, 0
	goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECD9
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
	playse SE_PIN
	takeitem ITEM_ROOM_2_KEY, 1
	setflag FLAG_USED_ROOM_2_KEY
	call AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
	special DrawWholeMapView
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
	lockall
	goto_if_set FLAG_USED_ROOM_4_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
	checkitem ITEM_ROOM_4_KEY, 1
	compare VAR_RESULT, 0
	goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECE3
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
	playse SE_PIN
	takeitem ITEM_ROOM_4_KEY, 1
	setflag FLAG_USED_ROOM_4_KEY
	call AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
	special DrawWholeMapView
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15EC98:: @ 815EC98
	lockall
	goto_if_set FLAG_USED_ROOM_6_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
	checkitem ITEM_ROOM_6_KEY, 1
	compare VAR_RESULT, 0
	goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECED
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
	playse SE_PIN
	takeitem ITEM_ROOM_6_KEY, 1
	setflag FLAG_USED_ROOM_6_KEY
	call AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
	special DrawWholeMapView
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15ECCF:: @ 815ECCF
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198DC0, 4
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15ECD9:: @ 815ECD9
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198DF4, 4
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15ECE3:: @ 815ECE3
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198E28, 4
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15ECED:: @ 815ECED
	msgbox AbandonedShip_HiddenFloorCorridors_Text_198E5C, 4
	releaseall
	end

AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7:: @ 815ECF7
	msgbox AbandonedShip_HiddenFloorCorridors_Text_1986EC, 4
	releaseall
	end
